home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, mymem, dwnmem
- global gmyphotonum
-
- on beginSprite me
- set mymem to the member of sprite spriteNum
- set dwnmem to the name of mymem & "_dwn"
- set the member of sprite spriteNum to dwnmem
- end
-
- on mouseUp me
- toolsbar()
- end
-
- on toolsbar
- if count(the windowList) = 2 then
- deleteAt(the windowList, 2)
- set the member of sprite spriteNum to mymem
- else
- case gmyphotonum of
- 2, 28:
- set toolwidth to 112
- set toolhight to 210
- otherwise:
- set toolwidth to 208
- set toolhight to 210
- end case
- set pix to 43
- set the rect of window "Tools" to the rect of the stage + rect(800 - toolwidth, pix, 0, -(600 - (pix + toolhight)))
- set the windowType of window "Tools" to 49
- set the fileName of window "Tools" to "@/tool"
- open(window "Tools")
- set the member of sprite spriteNum to dwnmem
- end if
- end
-